Tables [dbo].[AppealParticipation]
Properties
PropertyValue
Row Count0
Created10:31:13 AM Tuesday, March 02, 2010
Last Modified1:20:13 PM Thursday, February 23, 2012
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_AppealParticipation: AppealParticipationKeyAppealParticipationKeyuniqueidentifier16
No
Foreign Keys FK_AppealParticipation_AppealMain: [dbo].[AppealMain].AppealKeyIndexes IX_AppealParticipation_AppealKey: AppealKeyAppealKeyuniqueidentifier16
No
Indexes IX_AppealParticipation_RespondentUserKey: RespondentUserKeyRespondentUserKeyuniqueidentifier16
No
Foreign Keys FK_AppealParticipation_SolicitationMain: [dbo].[SolicitationMain].SolicitationKeyIndexes IX_AppealParticipation_SolicitationKey: SolicitationKeySolicitationKeyuniqueidentifier16
No
Foreign Keys FK_AppealParticipation_ResponseTypeRef: [dbo].[ResponseTypeRef].ResponseTypeCodeIndexes IX_AppealParticipation_ResponseTypeCode: ResponseTypeCodeResponseTypeCodeint4
No
Foreign Keys FK_AppealParticipation_UserMain_CreatedBy: [dbo].[UserMain].CreatedByUserKeyIndexes IX_AppealParticipation_CreatedByUserKey: CreatedByUserKeyCreatedByUserKeyuniqueidentifier16
No
CreatedOndatetime8
Yes
Foreign Keys FK_AppealParticipation_UserMain_UpdatedBy: [dbo].[UserMain].UpdatedByUserKeyIndexes IX_AppealParticipation_UpdatedByUserKey: UpdatedByUserKeyUpdatedByUserKeyuniqueidentifier16
No
UpdatedOndatetime8
No
Foreign Keys FK_AppealParticipation_SourceCode: [dbo].[SourceCode].SourceCodeKeyIndexes IX_AppealParticipation_SourceCodeKey: SourceCodeKeySourceCodeKeyuniqueidentifier16
No
MarkedForDeleteOndatetime8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_AppealParticipation: AppealParticipationKeyPK_AppealParticipationAppealParticipationKey
Yes
IX_AppealParticipation_AppealKeyAppealKey
IX_AppealParticipation_CreatedByUserKeyCreatedByUserKey
IX_AppealParticipation_RespondentUserKeyRespondentUserKey
IX_AppealParticipation_ResponseTypeCodeResponseTypeCode
IX_AppealParticipation_SolicitationKeySolicitationKey
IX_AppealParticipation_SourceCodeKeySourceCodeKey
IX_AppealParticipation_UpdatedByUserKeyUpdatedByUserKey
Foreign Keys Foreign Keys
NameDeleteColumns
FK_AppealParticipation_AppealMainCascadeAppealKey->[dbo].[AppealMain].[AppealKey]
FK_AppealParticipation_ResponseTypeRefResponseTypeCode->[dbo].[ResponseTypeRef].[ResponseTypeCode]
FK_AppealParticipation_SolicitationMainSolicitationKey->[dbo].[SolicitationMain].[SolicitationKey]
FK_AppealParticipation_SourceCodeSourceCodeKey->[dbo].[SourceCode].[SourceCodeKey]
FK_AppealParticipation_UserMain_CreatedByCreatedByUserKey->[dbo].[UserMain].[UserKey]
FK_AppealParticipation_UserMain_UpdatedByUpdatedByUserKey->[dbo].[UserMain].[UserKey]
SQL Script
CREATE TABLE [dbo].[AppealParticipation]
(
[AppealParticipationKey] [uniqueidentifier] NOT NULL,
[AppealKey] [uniqueidentifier] NOT NULL,
[RespondentUserKey] [uniqueidentifier] NOT NULL,
[SolicitationKey] [uniqueidentifier] NOT NULL,
[ResponseTypeCode] [int] NOT NULL,
[CreatedByUserKey] [uniqueidentifier] NOT NULL,
[CreatedOn] [datetime] NULL,
[UpdatedByUserKey] [uniqueidentifier] NOT NULL,
[UpdatedOn] [datetime] NOT NULL,
[SourceCodeKey] [uniqueidentifier] NOT NULL,
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[AppealParticipation] ADD CONSTRAINT [PK_AppealParticipation] PRIMARY KEY CLUSTERED ([AppealParticipationKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_AppealParticipation_AppealKey] ON [dbo].[AppealParticipation] ([AppealKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_AppealParticipation_CreatedByUserKey] ON [dbo].[AppealParticipation] ([CreatedByUserKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_AppealParticipation_RespondentUserKey] ON [dbo].[AppealParticipation] ([RespondentUserKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_AppealParticipation_ResponseTypeCode] ON [dbo].[AppealParticipation] ([ResponseTypeCode]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_AppealParticipation_SolicitationKey] ON [dbo].[AppealParticipation] ([SolicitationKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_AppealParticipation_SourceCodeKey] ON [dbo].[AppealParticipation] ([SourceCodeKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_AppealParticipation_UpdatedByUserKey] ON [dbo].[AppealParticipation] ([UpdatedByUserKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AppealParticipation] ADD CONSTRAINT [FK_AppealParticipation_AppealMain] FOREIGN KEY ([AppealKey]) REFERENCES [dbo].[AppealMain] ([AppealKey]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[AppealParticipation] ADD CONSTRAINT [FK_AppealParticipation_ResponseTypeRef] FOREIGN KEY ([ResponseTypeCode]) REFERENCES [dbo].[ResponseTypeRef] ([ResponseTypeCode])
GO
ALTER TABLE [dbo].[AppealParticipation] ADD CONSTRAINT [FK_AppealParticipation_SolicitationMain] FOREIGN KEY ([SolicitationKey]) REFERENCES [dbo].[SolicitationMain] ([SolicitationKey])
GO
ALTER TABLE [dbo].[AppealParticipation] ADD CONSTRAINT [FK_AppealParticipation_SourceCode] FOREIGN KEY ([SourceCodeKey]) REFERENCES [dbo].[SourceCode] ([SourceCodeKey])
GO
ALTER TABLE [dbo].[AppealParticipation] ADD CONSTRAINT [FK_AppealParticipation_UserMain_CreatedBy] FOREIGN KEY ([CreatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
ALTER TABLE [dbo].[AppealParticipation] ADD CONSTRAINT [FK_AppealParticipation_UserMain_UpdatedBy] FOREIGN KEY ([UpdatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
Uses
Used By